//
//  ScoreEventViewCell.m
//  LiveSoftware
//
//  Created by lanou3g on 15/7/15.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "ScoreEventViewCell.h"

@interface ScoreEventViewCell ()


/*
//主队- 时间
@property(nonatomic,strong)UILabel *homeEventTime;
// 主队--  事件类型
@property(nonatomic,strong)UILabel *homeEventType;


//客队 --事件类型
@property(nonatomic,strong)UILabel *awayEventType;


//客队 --时间
@property(nonatomic,strong)UILabel *awayEventTime;


//下面的


// 入球图片
@property(nonatomic,strong)UIImageView *ballInImageView;
//入球
@property(nonatomic,strong)UILabel *ballInLable;


//点球图片
@property(nonatomic,strong)UIImageView *pointImageView;
//点球
@property(nonatomic,strong)UILabel *pointLabel;




//乌龙图片
@property(nonatomic,strong)UIImageView *owngoalImageView;
//乌龙
@property(nonatomic,strong)UILabel *owngoalLabel;



//两黄变红图片
@property(nonatomic,strong)UIImageView *yeToRedImageView;
//两黄变红
@property(nonatomic,strong)UILabel *yeToRedLabel;



//换人图片
@property(nonatomic,strong)UIImageView *changePeopleImageView;

//换人
@property(nonatomic,strong)UILabel *changePeopleLabel;
*/



@end



@implementation ScoreEventViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if(self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        /*
        float partX = kScreenIp6(0);
        
        float partY= kScreenIp6(10);
        float partWidth = kScreenIp6(30);
        float partHeight = kScreenIp6(30);
        
        //入球图片
        self.ballInImageView = [[UIImageView alloc]initWithFrame:CGRectMake(partX, partY, partWidth, partHeight)];
        
        self.ballInImageView.image = [UIImage imageNamed:@""];
        [self.contentView addSubview:_ballInImageView];
         
        //入球
        self.ballInLable = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.ballInImageView.frame)+4  ,partY, partWidth, partHeight)];
        self.ballInLable.font = [UIFont systemFontOfSize:12];
        
        self.ballInLable.text = @"入球";
        [self.contentView addSubview:_ballInLable];
        
        //点球图片
        self.pointImageView = [[UIImageView alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.ballInLable.frame)+4  , partY,partWidth,partHeight)];
        
        self.pointImageView.image = [UIImage imageNamed:@""];
        [self.contentView addSubview:_pointImageView];
        
        //点球
        self.pointLabel = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.pointImageView.frame)+4 , partY, partWidth, partHeight)];
        
        self.pointLabel.font = [UIFont systemFontOfSize:12];
        self.pointLabel.text = @"点球";
        [self.contentView addSubview:_pointLabel];
        
        //乌龙图片
        self.owngoalImageView = [[UIImageView alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.pointLabel.frame)+4  , partY, partWidth, partHeight)];
        self.owngoalImageView.image = [UIImage imageNamed:@""];
        [self.contentView addSubview:_owngoalImageView];
        
        //乌龙
        self.owngoalLabel = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.owngoalImageView.frame)+4 , partY, partWidth, partHeight)];
        
        self.owngoalLabel.font = [UIFont systemFontOfSize:12];

        self.owngoalLabel.text = @"乌龙";
        [self.contentView addSubview:_owngoalLabel];
         
        //两黄变红图片
        self.yeToRedImageView = [[UIImageView alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.owngoalLabel.frame)+4  , partY, partWidth, partHeight)];
        
        self.yeToRedImageView.image = [UIImage imageNamed:@""];
        [self.contentView addSubview:_yeToRedImageView];
        
        //两黄变红
        self.yeToRedLabel = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.yeToRedImageView.frame)+4 , partY,partWidth+ kScreenIp6(10), partHeight)];
        
        self.yeToRedLabel.font = [UIFont systemFontOfSize:12];
        self.yeToRedLabel.adjustsFontSizeToFitWidth = YES;
        self.yeToRedLabel.text = @"两黄变红";
        [self.contentView addSubview:_yeToRedLabel];
        
        
        //换人图片
        self.changePeopleImageView = [[UIImageView alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.yeToRedLabel.frame)+4  , partY, partWidth, partHeight)];
        
        self.changePeopleImageView.image = [UIImage imageNamed:@""];
        [self.contentView addSubview:_changePeopleImageView];
        
        //换人
        self.changePeopleLabel = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.changePeopleImageView.frame)+4 , partY, partWidth, partHeight)];
        self.changePeopleLabel.font = [UIFont systemFontOfSize:12];
        
        self.changePeopleLabel.text = @"换人";
        [self.contentView addSubview:_changePeopleLabel];
        */
        
        
        UIView *bgView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, 35)];
        [self.contentView addSubview:bgView];
        
        UIImageView *event = [[UIImageView alloc] initWithFrame:CGRectMake((kScreenWidth - 35*6) / 2, 0, 35 * 6, 35)];
        event.image = [UIImage imageNamed:@"match_event_icon@2x"];
        [bgView addSubview:event];
        
        // 设置 cell 点击没有变化
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        
    }
    
    
    return self;
}









@end
